const http = uni.$u.http
// form-data 请求举例
export const example = (data, config = { header: { 'Content-Type': 'application/x-www-form-urlencoded' }, custom: { type: 'url' }}) => http.get('/storepayment/order/example', config)

// 获取当前系统时间  header: { 'Content-Type': 'application/x-www-form-urlencoded' },
export const getAccountTime = (data, config = { custom: { type: 'url' }}) => http.get('/storepayment/order/getAccountTime', config)
// 获取热门城市
export const getHotCity = (data, config = { custom: { type: 'ycMainUrl' }}) => http.post('/api/pc/baseservice/common/getDict', data, config)
// 获取省级接口
export const getProvince = (data, config = { custom: { type: 'ycMainUrl' }}) => http.post('/api/pc/baseservice/area/getWarehouseCoverAddressCascade', data, config)
// 获取区域合集
export const getCity = (data, config = { custom: { type: 'ycMainUrl' }}) => http.post('/api/pc/baseservice/area/warehouseCoverAddressListByProvinceGroup', data, config)
// 经纬度获取地址信息
export const getAddress = (data, config = { custom: { type: 'comUrl' }}) => http.post('/communalbase/map/reverseGeocoding', data, config)
// 获取特殊城市
export const getDiffCity = (data, config = { header: { 'Content-Type': 'application/x-www-form-urlencoded' }, custom: { type: 'ycMainUrl' }}) => http.post('/api/pc/baseservice/area/listSpecialAddressName', data, config)
// 获取特殊城市的三级数据
export const getThreeCity = (data, config = { custom: { type: 'ycMainUrl' }}) => http.post('/api/pc/baseservice/area/warehouseCoverAddressListByCode', data, config)
// 当三级地址选中没有仓时，调用查找仓
export const getWare = (data, config = { header: { 'Content-Type': 'application/x-www-form-urlencoded' }, custom: { type: 'ycMainUrl' }}) => http.post('/api/pc/baseservice/area/getAddressDataByNameAndLevel', data, config)
